
angular.module('myApp')
.controller('CollapseCtrl', ['$scope', function($scope) {
  $scope.items = [
    { name: '1', title: '一致性 Consistency', content: '与现实生活一致的内容' },
    { name: '2', title: '反馈 Feedback', content: '控制反馈的示例内容' },
    { name: '3', title: '效率 Efficiency', content: '高效操作示例内容' }
  ];
  $scope.activeNames = ['1'];
}])
.directive('elCollapse', elCollapse)
.directive('elCollapseItem', elCollapseItem);